#include <stdio.h>
#include <sys/resource.h>
/*--open_core_dump----------------------------------------------------------*
 *                                                                          *
 *--------------------------------------------------------------------------*/
void open_core_dump( int ssizeKB, int hsizeKB )
{
	struct rlimit rlim = {ssizeKB * 1024, hsizeKB * 1024};

	setrlimit(RLIMIT_CORE, &rlim);
}